package com.itheima.reggie.enums;

import lombok.Data;

/**
 * 公共http响应枚举
 *
 * @author Upjqs
 * @since 2024-01-28 17:28
 */

public enum HttpEnum {
    DATA_NULL(5000,"数据为空"),
    PARAMETER_NULL(5001,"参数为空"),
    PARAMETER_ERROR(5004,"参数不规范"),
    COMMON_ERROR(500,"后台异常"),
    SUCCESS(200,"成功"),
    UN_LOGIN(5002,"用户未登录"),;

    /**
     * 成员变量
     */
    private Integer code;
    private String msg;

    HttpEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
